package com.noble.meether.ui.auth;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;

import com.noble.glamour.module.logic.application.App;
import com.noble.library.base.BaseAppCompatActivity;
import com.noble.library.utils.FileUtil;
import com.noble.meether.R;
import com.noble.meether.ui.auth.bean.AuthList;

/**
 * 统一授权页面
 */
public class AuthorizationAct extends BaseAppCompatActivity {
    private RecyclerView auth_list;
    private AuthList authList;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_auth);
        initView();
    }

    private void initView() {
        initData();
        auth_list = findViewById(R.id.auth_list);
    }

    private void initData() {
        authList = new AuthList();
        authList.parseJson(FileUtil.getFromAssets(App.getContext(), "info_auth.json"));
    }
}
